<ion-view class="settings" show-tabs>
  <ion-nav-bar class="bar-royal">
    <ion-nav-title>Wallet Service URL</ion-nav-title>
    <ion-nav-back-button>
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content>

    <div ng-include="'views/includes/walletItem.html'"></div>

    <div class="list settings-list settings-input-group">
      <label class="item item-input item-stacked-label">
        <span class="input-label">Wallet Service URL</span>
        <input type="text" id="bwsurl" type="text" name="bwsurl" ng-model="bwsurl.value">
      </label>
      <button class="no-border postfix" on-tap="resetDefaultUrl()">
        <i class="icon ion-ios-reload"></i>
      </button>
    </div>
    <div class="settings-explanation">
      <div class="settings-description" translate>
        {{appName}} depends on Bitcore Wallet Service (BWS) for blockchain information, networking and Copayer synchronization. The default configuration points to http://114.112.99.137:3232 (BitPay's public BWS instance).
      </div>
    </div>
    <button class="button button-standard button-primary" ng-click="save()" translate>Save</button>
  </ion-content>
</ion-view>
